import styled from 'styled-components'

export const HomeWrapper = styled.div`
  width:960px;
  margin:0 auto;
  height:300px;
`

export const HomeLeft = styled.div`
  float:left;
  margin-left:15px;
  padding-top:30px;
  width:625px;
  .banner-img{
    width:625px;
  };
`

export const HomeRight = styled.div`
  float:right;
  width:280px;
`

export const TopicWrapper = styled.div`
  overflow:hidden;
  padding: 20px 0 10px 0;
  margin-left:-18px;
  border-bottom:1px solid #dcdcdc;
`

export const TopicItem = styled.div`
  float:left;
  height:32px;
  line-height:32px;
  margin-left:18px;
  margin-bottom:18px;
  padding-right:10px;
  background:#f7f7f7;
  font-size:14px;
  color:#000;
  border:1px solid #dcdcdc;
  border-radius:4px;
  .topic-pic{
    display:block;
    float:left;
    width:32px;
    height:32px;
    margin-right:10px;
  }
`

export const ListItem = styled.div`
  overflow:hidden;
  padding:20px 0;
  border-bottom:1px solid #dcdcdc;
  .pic{
    display:block;
    width:125px;
    height:100px;
    float:right;
  }

`

export const ListInfo = styled.div`
  .title{
    margin: -7px 0 4px;
    display: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
  }
  .desc{
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 24px;
    color: #999;
  }
`

export const RecommendWrapper = styled.div`
  margin:30px 0;
  width:280px;
`

export const RecommendItem = styled.div`
  width:280px;
  height:50px;
  background:url(${(prps) => prps.imgUrl});
  background-size:contain;
`

export const WriterWrapper = styled.div`
  width:280px;
  border-radius:3px;
  height:300px;
  line-height:300px;
`

export const WriterItem = styled.div`
  width:280px;
  overflow:hidden;
  margin-top: 15px;
  height:50px;
  .pic{
    float: left;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 50%;
  }
`

export const WriterInfo = styled.div`
  float:right;
  width:220px;
  overflow:hidden;
  .name{
    line-height:30px;
    height:30px;
    width:100%;
  }
  .desc{
    line-height:20px;
    height:20px;
    width:100%;
    font-size: 12px;
    color: #969696;
  }
`

export const LoadMore = styled.div`
  widht:100%;
  height:40px;
  line-height:40px;
  background:#a5a5a5;
  text-align:center;
  border-radius:20px;
  color:#fff;
  cursor:pointer;
`

export const BackTop = styled.div`
position:fixed;
right:100px;
bottom:100px;
width:60px;
height:60px;
line-height:60px;
text-align:center;
border:1px solid #ccc;
font-size:14px;
`